<template>
  <div class="error">
    <span> {{errorData[errorCode]}}</span>
    <router-link to='/'>返回</router-link>
  </div>
</template>
<script>
import errorData from '@/configs/error.js'
export default {
  name: 'errorpage',
  props: {
    errorCode: Number
  },
  setup() {
    return {
      errorData
    }
  }
}
</script>
<style lang="less" scoped>
.error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 18px;
  height: 50%;
  a {
    margin-top: 10px;
    color: #fff;
    width: 60px;
    height: 30px;
    line-height: 30px;
    border-radius: 10px;
    background-color: #337ab7;
  }
}
</style>
